package com.joe.test_mybatis_plus.utils;

import java.util.regex.Pattern;

/**
 * @author Joe
 * @description 描述
 * @time 2023/4/17 15:31
 **/
public class DataTest1 {
    public static void main(String[] args) {
        String pattern  = "(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[^a-zA-Z0-9]).{10,}";
        String password = "Admin+-+3a";
        boolean isMatch = Pattern.matches(pattern, password);
        System.out.println("密码中是否达标? " + isMatch);
    }
}
